package com.spring.aop.note;

public class ArithmeticCalculatorImpl implements ArithmeticCalculator{

	@Override
	public int add(int x, int y) {
		System.out.println("加法");
		int r=x+y;
		return r;
	}

	@Override
	public int sub(int x, int y) {
		System.out.println("减法");
		int r=x-y;
		return r;
	}

	@Override
	public int div(int x, int y) {
		System.out.println("除法");
		int r=x/y;
		return r;
	}

	@Override
	public int mul(int x, int y) {
		System.out.println("乘法");
		int r=x*y;
		return r;
	}

}
